﻿<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<title>增加日志</title>
		<link rel="stylesheet" href="css_js/css/bootstrap.min.css" />
		<link rel="stylesheet" href="css_js/layui/css/layui.css" />
		<link rel="stylesheet" href="dist/css/common.css" />
		<link rel="stylesheet" href="dist/css/addDaily.css" />
		<script type="text/javascript" charset="utf-8" src="cordova.js"></script>
	</head>
	<body ng-app="App" ng-controller="addDailyCtrl">
		<div class="bg_color">
			<nav class="navbar text-center">
				<div class="nav_body">
					<img ng-click="go_back()" class="pull-left btn_top_left" src="dist/images/point/left.png">
					<span class="tit_title">增加日志</span>
				</div>
			</nav>
			<section>
				<div class="mar_10">
					<form id="submit">
						<div class="daily_box">
							<input  id="file" class="" type="file" name='file'/>
							<img ng-click="logPhoto()" id="logImage"  class="daily_camara center-block" src="dist/images/image/add_01.png" alt="" />
							<p class="p_tit">点击拍照，或上传图片</p>
                        </div>
					</form>					
					<div class="daily_bottom">
						<form class="text_box">
							<div class="form-group form_box">
                                <label class="col-xs-3 span_list_one control-label">标题</label>
								<input ng-model="addobj.title" placeholder="请输入标题" class="form-control" ng-disabled="disabled" required/>
							</div>
							<div  class="form-group form_box">
                                <label class="col-xs-3 span_list_one control-label">项目</label>
								<select class="form-control" ng-model="addobj.projectid" ng-disabled="disabled">
									<option class="form-control" value="{{obj.id}}" ng-repeat="obj in constList">{{obj.name}}</option>
								</select>
							</div>
							<div class="form-group form_box">
								<textarea ng-model="addobj.content" placeholder="请输入描述" class="form-control" rows="5" ng-disabled="disabled"></textarea>
							</div>
						</form>
					</div>
					<div class="sub_btn">
						<button class="submit_btn pass_green" ng-click="sure_submit()">提&nbsp;交</button>
					</div>
				</div>
			</section>
		</div>
		<script src="css_js/js/jquery.min.js"></script>
        <script src="css_js/js/angular.min.js"></script>
        <script src="css_js/js/angular-cookies.min.js"></script>
		<script src="css_js/js/bootstrap.min.js"></script>
		<script src="css_js/layui/layui.all.js"></script>
        <script src="dist/controller/config.js"></script>
        <script src="dist/controller/app.js"></script>
        <script src="css_js/js/tinyImgUpload.js"></script>
		<script src="dist/controller/addDailyCtrl.js"></script>
	</body>
</html>